﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BCEntity.MySql.FreightConfigurationExtention
{
    /// <summary>
    /// 运费配置拓展数据模型
    /// </summary>
    public class FreightConfigurationExtentionEntity
    {
        /// <summary>
        ///运费配置扩展Id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int FreightConfigurationExtentionId { get; set; }

        /// <summary>
        /// 省份编码
        /// </summary>
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 城市编码
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 区县编码
        /// </summary>
        public string CountyCode { get; set; }


        /// <summary>
        /// 首重
        /// </summary>
        public decimal FirstWeight { get; set; }

        /// <summary>
        /// 最大重量
        /// </summary>
        public decimal MaxWeight { get; set; }

        /// <summary>
        /// 起步价
        /// </summary>
        public decimal StartPrice { get; set; }

        /// <summary>
        /// 续重价格
        /// </summary>
        public decimal EveryWeightPrice { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 编辑人
        /// </summary>
        public string Editer { get; set; }

        /// <summary>
        /// 订单来源(商城、TMS、仓库)
        /// </summary>
        public string SourceType { get; set; }

        /// <summary>
        /// 物流类型（一般、快速、急速）
        /// </summary>
        public string FreightType { get; set; }
        /// <summary>
        /// 同区县最大公里界限
        /// </summary>
        public int? SameCountyMaxMileage { get; set; }

        /// <summary>
        /// 同区县折扣率
        /// </summary>
        public decimal? SameCountyRatio { get; set; }
        /// <summary>
        /// 同城最大公里界限
        /// </summary>
        public int? SameCityMaxMileage { get; set; }

        /// <summary>
        /// 同城折扣率
        /// </summary>
        public decimal? SameCityRatio { get; set; }

        /// <summary>
        /// 同省最大公里界限
        /// </summary>
        public int? SameProvinceMileage { get; set; }

        /// <summary>
        /// 同省折扣率
        /// </summary>
        public decimal? SameProvinceRatio { get; set; }

        /// <summary>
        /// 车辆类型Id
        /// </summary>
        public int VehicleTypeId { get; set; }

        /// <summary>
        /// 单公里价格
        /// </summary>
        public decimal? MileagePrice { get; set; }
    }
}